package impl;  
import itf.Convert;  
import javax.ejb.Remote;  
import javax.ejb.Stateless;  
 
@Stateless (mappedName="ConvertBean")  
@Remote  
public class ConvertBean implements Convert { 
    public ConvertBean(){  
        System.out.println("ConvertBean Constructor running");  
    }  
	
    public String getRmb(String usd){  
        double rate = 6.0;  
        double dblUsd = Double.parseDouble(usd);  
        double dblRmb = dblUsd * rate;  
        String rmb = String.valueOf(dblRmb);  
        return rmb;  
    }  
} 